<?php

namespace app\api\model;

use think\Model;
use think\model\concern\SoftDelete;

class FriendRequest extends Model
{
   /*  // 设置软删除字段
    use SoftDelete;
    protected $deleteTime = 'delete_time'; */
    // 关联用户模型
    public function user()
    {
        return $this->belongsTo(User::class, 'follow_id', 'id');
    }
    public function userInfo()
    {
        return $this->hasOne(User::class , 'id' , 'sender_id');
    }
}
